package com.taiji.dianthus.domain.sms.api;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.annotations.Proxy;

import javax.persistence.*;
import java.util.Date;

/**
 * @ClassName SmsInfo
 * @Description 对外短信实体
 * @Author H.M
 * @Date 2020/7/14
 */
@Entity
@Table(name = "t_sms_public_use")
@Proxy(lazy = false)
@JsonIgnoreProperties({"handler", "hibernateLazyInitializer"})
@ApiModel(description = "对外短信信息")
public class SmsDomain {

    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(name = "id")
    @ApiModelProperty(value = "主键", name = "id")
    private String id;


    @ApiModelProperty(value = "分组数，当手机号超过该数字时按照该数进行分组，默认500")
    @Column(name = "group_number")
    private Integer groupNumber;

    @ApiModelProperty(value = "手机号码，每批次限5000个号码，已英文逗号分隔。")
    @Column(name = "mobiles")
    private String mobiles;

    @ApiModelProperty(value = "短信内容")
    @Column(name = "sms_content")
    private String smsContent;


    @ApiModelProperty(value = "smsGroup ", name = "smsGroup")
    @Column(name = "sms_group")
    private String smsGroup;

    @ApiModelProperty(value = "应用名称", name = "appName")
    @Column(name = "app_name")
    private String appName;


    @ApiModelProperty(value = "密码", name = "app_password")
    @Column(name = "app_password")
    private String appPassword;


    @ApiModelProperty(value = "应用id", name = "appId")
    @Column(name = "app_id")
    private String appId;
    @ApiModelProperty(value = "create_time ", name = "create_time")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "发送账号ID ", name = "accountId")
    @Column(name = "account_id")
    private String accountId;

    public Integer getGroupNumber() {
        return groupNumber;
    }

    public void setGroupNumber(Integer groupNumber) {
        this.groupNumber = groupNumber;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMobiles() {
        return mobiles;
    }

    public void setMobiles(String mobiles) {
        this.mobiles = mobiles;
    }

    public String getSmsContent() {
        return smsContent;
    }

    public void setSmsContent(String smsContent) {
        this.smsContent = smsContent;
    }

    public String getSmsGroup() {
        return smsGroup;
    }

    public void setSmsGroup(String smsGroup) {
        this.smsGroup = smsGroup;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getAppPassword() {
        return appPassword;
    }

    public void setAppPassword(String appPassword) {
        this.appPassword = appPassword;
    }
}
